//遍历字符串
import java.util.Scanner;
public class luru {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       System.out.println("请输入一个字符串：");
       String a = sc.nextLine();
       //a.length().fori 回车
       for (int i = 0; i < a.length(); i++) {
            //i依次表示字符串的每一个索引
           char c = a.charAt(i);
           System.out.println(c);
        }
    }
}
